package pl.grumpy.tvforecast;

import java.io.Serializable;
import java.net.MalformedURLException;
import java.net.URL;

import android.graphics.Bitmap;

public class TVSerie implements Serializable {

	private String title = null;
	private String description = null;
	private int id = -1;
	private URL banner = null;
	private Bitmap bannerImg = null;

	public TVSerie() {
		super();
	}

	public TVSerie(String title, String description, int id) {
		super();
		this.title = title;
		this.description = description;
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public void setBanner(String banner) {
		try {
			this.banner = new URL("http://thetvdb.com/banners/"+banner);
		} catch (MalformedURLException e) {
			e.printStackTrace();
		}
	}

	public URL getBanner() {
		return banner;
	}

	public Bitmap getBannerImg() {
		return bannerImg;
	}

	public void setBannerImg(Bitmap bannerImg) {
		this.bannerImg = bannerImg;
	}

}
